﻿// Copyright (c)  YISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using NSQL.Expressions;

namespace NSQL.Resource
{
    public class ColumnInfo : IColumnInfo
    {
        public IDatabaseInfo Database => Table?.Database;
        public ISchemaInfo Schema => Table?.Schema;
        public ITableInfo Table { get; set;}
        public int Id { get; set; }
        public Identifier Name { get;  set;}
        public string DataType { get; set;}
        public IExpression Expr { get; set;}
    }
}